package com.example.azheng.okhttpdemo.contract;


import com.example.azheng.okhttpdemo.base.BaseModel;
import com.example.azheng.okhttpdemo.base.BasePresenter;
import com.example.azheng.okhttpdemo.base.BaseView;
import com.example.azheng.okhttpdemo.base.IModel;
import com.example.azheng.okhttpdemo.beans.JuheBean;

import io.reactivex.Observable;
import io.reactivex.Observer;


/**
 * @author azheng
 * @date 2018/4/14.
 * GitHub：https://github.com/RookieExaminer
 * email：wei.azheng@foxmail.com
 * description：
 */
public interface JuheNewContract {
    interface Model  extends IModel{
        Observable<JuheBean>  request();
    }

    interface View extends BaseView {

        void showLoading();

        void hideLoading();

        void showData(JuheBean juheBaen);

        void getDataFailed();

    }

    interface Presenter {

        void onRefresh();


    }
}
